<template>
  <div id="app">
    <router-view />
    <bottom-nav v-show="$route.meta.showFooter" :tabIndex="tabIndex"></bottom-nav>

  </div>
</template>

<script>
import BottomNav from './components/BottomNav';
export default {
  name: 'App',
  data() {
    return {
      tabIndex: 0
    }
  },
  components: {
    'bottom-nav': BottomNav
  },
  created() {
    if (this.$route.path === '/home') {
      this.tabIndex = 0;
    } else if (this.$route.path === '/mine') {
      this.tabIndex = 1;
    }
    
  }
}
</script>

<style>
#app {
  /* font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;*/
}
</style>
